package com.lanou.test;

import com.lanou.service.PersonService;
import com.lanou.service.impl.PersonServiceImpl;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 姚云鹏
 * Create at: 2018/6/12 14:16
 */
public class XmlAopTest1 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new
                ClassPathXmlApplicationContext("spring.xml");
        PersonService personService = ac.getBean
                (PersonService.class);
        System.out.println(personService.getClass());

        personService.add();
        personService.delete();

    }
}
